Platform Explorer / Nuxeo Platform 2023.8

Contribution org.nuxeo.ecm.multi.tenant.directories--directories

This contribution is part of XML component org.nuxeo.ecm.multi.tenant.directories inside nuxeo-multi-tenant-core-2023.8.13.jar /OSGI-INF/directories-contrib.xml

Extension Point

Extension point directories of component GenericDirectory.

Registration Order

6
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <directory extends="template-directory" name="tenants">
          <schema>tenant</schema>
          <idField>id</idField>
          <entryCacheName>tenants-cache</entryCacheName>
          <entryCacheWithoutReferencesName>tenants-cache-without-ref</entryCacheWithoutReferencesName>
        </directory>
  • <directory extends="template-directory" name="topic">
          <schema>multitenantvocabulary</schema>
          <idField>id</idField>
          <dataFile>directories/topic.csv</dataFile>
          <entryCacheName>topic-cache</entryCacheName>
          <entryCacheWithoutReferencesName>topic-cache-without-ref</entryCacheWithoutReferencesName>
          <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
            <property name="targetDirectory">subtopic</property>
            <property name="targetDirectoryField">parent</property>
          </deleteConstraint>
        </directory>
  • <directory extends="template-directory" name="subtopic">
          <schema>multitenantxvocabulary</schema>
          <idField>id</idField>
          <parentDirectory>topic</parentDirectory>
          <dataFile>directories/subtopic.csv</dataFile>
          <entryCacheName>subtopic-cache</entryCacheName>
          <entryCacheWithoutReferencesName>subtopic-cache-without-ref</entryCacheWithoutReferencesName>
        </directory>
  • <directory extends="template-directory" name="l10nsubjects">
          <schema>multitenantl10nxvocabulary</schema>
          <idField>id</idField>
          <parentDirectory>l10nsubjects</parentDirectory>
          <dataFile>directories/l10nsubjects.csv</dataFile>
          <entryCacheName>l10nsubjects-cache</entryCacheName>
          <entryCacheWithoutReferencesName>l10nsubjects-cache-without-ref</entryCacheWithoutReferencesName>
          <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
            <property name="targetDirectory">l10nsubjects</property>
            <property name="targetDirectoryField">parent</property>
          </deleteConstraint>
        </directory>
  • <directory extends="template-directory" name="l10ncoverage">
          <schema>multitenantl10nxvocabulary</schema>
          <idField>id</idField>
          <parentDirectory>l10ncoverage</parentDirectory>
          <dataFile>directories/l10ncoverage.csv</dataFile>
          <entryCacheName>l10ncoverage-cache</entryCacheName>
          <entryCacheWithoutReferencesName>l10ncoverage-cache-without-ref</entryCacheWithoutReferencesName>
          <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
            <property name="targetDirectory">l10ncoverage</property>
            <property name="targetDirectoryField">parent</property>
          </deleteConstraint>
        </directory>

XML Source

<extension point="directories" target="org.nuxeo.ecm.directory.GenericDirectory">

    <directory extends="template-directory" name="tenants">
      <schema>tenant</schema>
      <idField>id</idField>
      <entryCacheName>tenants-cache</entryCacheName>
      <entryCacheWithoutReferencesName>tenants-cache-without-ref</entryCacheWithoutReferencesName>
    </directory>

    <directory extends="template-directory" name="topic">
      <schema>multitenantvocabulary</schema>
      <idField>id</idField>
      <dataFile>directories/topic.csv</dataFile>
      <entryCacheName>topic-cache</entryCacheName>
      <entryCacheWithoutReferencesName>topic-cache-without-ref</entryCacheWithoutReferencesName>
      <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
        <property name="targetDirectory">subtopic</property>
        <property name="targetDirectoryField">parent</property>
      </deleteConstraint>
    </directory>

    <directory extends="template-directory" name="subtopic">
      <schema>multitenantxvocabulary</schema>
      <idField>id</idField>
      <parentDirectory>topic</parentDirectory>
      <dataFile>directories/subtopic.csv</dataFile>
      <entryCacheName>subtopic-cache</entryCacheName>
      <entryCacheWithoutReferencesName>subtopic-cache-without-ref</entryCacheWithoutReferencesName>
    </directory>

    <directory extends="template-directory" name="l10nsubjects">
      <schema>multitenantl10nxvocabulary</schema>
      <idField>id</idField>
      <parentDirectory>l10nsubjects</parentDirectory>
      <dataFile>directories/l10nsubjects.csv</dataFile>
      <entryCacheName>l10nsubjects-cache</entryCacheName>
      <entryCacheWithoutReferencesName>l10nsubjects-cache-without-ref</entryCacheWithoutReferencesName>
      <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
        <property name="targetDirectory">l10nsubjects</property>
        <property name="targetDirectoryField">parent</property>
      </deleteConstraint>
    </directory>

    <directory extends="template-directory" name="l10ncoverage">
      <schema>multitenantl10nxvocabulary</schema>
      <idField>id</idField>
      <parentDirectory>l10ncoverage</parentDirectory>
      <dataFile>directories/l10ncoverage.csv</dataFile>
      <entryCacheName>l10ncoverage-cache</entryCacheName>
      <entryCacheWithoutReferencesName>l10ncoverage-cache-without-ref</entryCacheWithoutReferencesName>
      <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
        <property name="targetDirectory">l10ncoverage</property>
        <property name="targetDirectoryField">parent</property>
      </deleteConstraint>
    </directory>

  </extension>